<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>编辑药品信息</title>
</head>
<body>
<div class="pd-20">
    <form action="{:U('edit')}" method="post" class="form form-horizontal" id="form">
        <input name="id" value="{$data.id}" hidden="hidden">
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>所属类型：</label>
            <div class="formControls col-8">
                <span class="select-box">
                <select class="select Validform_error" size="1" name="typeid" datatype="*" nullmsg="请选择" >
                    <option value="" selected="" disabled="disabled">请选择</option>
                    <volist name=":getLists(medicinetype)" id="v">
                            <option value="{$v.id}" <if condition="$data['typeid'] eq $v['id']">selected</if>>{$v.name}</option>
                    </volist>
                </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>药品名称：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请输入" name="name" datatype="*" nullmsg="不能为空" value="{$data.name}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>图片：</label>
            <div class="formControls col-6">
                <input type="file" class="input-text" name="coverFile" accept="image/*">
            </div>
            <div class="col-2">
                <if condition="$data['cover']">
                    已上传，<a href="javascript:void(0);" onclick="previewPictures('__UPS__{$data.cover}')">预览</a>
                </if>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">英文名称：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请输入" name="name_en"  value="{$data.name_en}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3">缩略英文名称：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请输入" name="short_name_en"  value="{$data.short_name_en}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>药品规格：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请输入单片包装" name="dose"  value="{$data.dose}" disabled>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>单片含量：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请输入单片含量" name="content" value="{$data.content}" >
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>单片计量单位：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请输入单片含量" name="dimension"  value="{$data.dimension}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>单片包装(片/粒/等)：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请输入单片包装" name="packages"  value="{$data.packages}">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>药品使用说明：</label>
            <div class="formControls col-8">
                <textarea rows="8" cols="48" name="usedesc" class="textarea"  placeholder="请输入药品说明"></textarea>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>描述：</label>
            <div class="formControls col-8">
                <textarea rows="6" cols="27" name="description"  class="textarea" autofocus="autofocus" style="resize: none"  placeholder="请输入">{$data.description} </textarea>
            </div>
        </div>
        <div class="row cl">
            <div class="col-9 col-offset-3">
                <input class="btn btn-primary radius" type="submit" value="提交">
            </div>
        </div>
    </form>
</div>
<include file="Common:footer_include"/>
</body>
</html>